package com.ycg.vue;

import com.ycg.vue.constant.Constant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableScheduling
public class VueApplication {
    private static final Logger Init = LoggerFactory.getLogger(VueApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(VueApplication.class, args);
        logStartupMessage();
    }
    private static void logStartupMessage() {
        Init.info(Constant.INIT);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
